<!--
  @author yangjiangming
  @date 2018/11/26 10:00
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head>
    <title>言而有信工单</title>
    <th:block th:replace="common/common :: loadJsCSS" />
    <!-- layui 多选框插件 formSelects-v4 样式-->

</head>

<body>

    <div class="layui-fluid work-list-page">
        <th:block th:replace="common/sendCommon :: track" />
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-tab layui-tab-brief tab-work-list" lay-filter="workListTabBrief">
                    <ul class="layui-tab-title">
                        <!-- 精准查询 -->
                        <li data-type="-1" data-addition="2" th:if="${#lists.contains(additionTabList, -1)}" class="layui-this">
                            <span th:text="精准查询"></span>
                            <span class="count"></span>
                        </li>

                        <!-- 批量查询 -->
                        <li data-type="-1" data-addition="2" th:if="${#lists.contains(additionTabList, 1)}">
                            <span th:text="批量查询"></span>
                            <span class="count"></span>
                        </li>

                        <li th:each="tab : ${tabList}" data-th-data-type="${tab.type}" th:if="${ tab.ext1 != '2' }">
                            <span th:text="${tab.text}"></span>
                            <span class="count"></span>
                        </li>
                    </ul>
                    <div class="layui-tab-content" id="tab-content" style="padding: 15px 0;">
                        <div class="layui-tab-item layui-show">
                            <!-- 查询表单 -->
                            <form class="search-form" method="post" action="/order/list" lay-filter="zmn-work-form">
                                <div class="layui-form layui-margin-t">
                                    <div th:replace="work/list/all/_query :: query1 "></div>
                                </div>
                            </form>
                        </div>

                        <!-- 批量查询 -->
                        <th:block th:with="value = 1" th:if="${#lists.contains(additionTabList, 1)}">
                            <div class="layui-tab-item">
                                <!-- 查询表单 -->
                                <form class="search-form" method="post" action="/order/list" lay-filter="zmn-work-form">
                                    <div class="layui-form layui-margin-t">
                                        <input class="layui-input" type="hidden" name="tabType" th:value="${ value }" />
                                        <div class="layui-form layui-margin-t">
                                            <div th:replace="work/list/all/_query :: precisionQuery "></div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </th:block>

                        <!-- 其他 -->
                        <div class="layui-tab-item" th:each="tab : ${tabList}" th:if="${ tab.ext1 != '2' }" th:classappend="${tab.type == 1} ? 'layui-show'"></div>

                    </div>
                </div>

                <table th:replace="work/list/all/_table :: table"></table>
            </div>

        </div>
    </div>

    <!-- 公共变量 -->
    <th:block th:replace="common/listQueryTmpl :: commonVariable" />

    <script th:inline="javascript">
        var tableName = 'all';
        var defaultMinTime = '[[${minTime}]]';
        var defaultBizType = null;
        var plat = null;
        var tabName = '工单查询'
        var path_name = '工单管理/服务工单管理/言而有信工单/工单查询'
        var loginStaff = [[${T(com.zmn.mcc.cas.web.StaffAdminService).currentStaff()}]];
        layui.config({
            version: 20221013001,
        }).extend({
            oms_work_list: "work/zmn.oms.work.list"
        }).use(['index', 'oms_work_list']);
    </script>

</body>

</html>